package com.sunnada.nginx.service;

import com.sunnada.nginx.bean.nginx.http.HttpServer;
import com.sunnada.nginx.bean.nginx.http.upstream.Upstream;
import com.sunnada.nginx.exception.CustonException;

import java.util.List;

public interface ListenerService {
    List<HttpServer> list() throws CustonException;

    HttpServer one(String nameAndPort) throws CustonException;

    boolean post(HttpServer httpServer) throws CustonException;

    boolean put(HttpServer httpServer) throws CustonException;

    boolean delete(String nameAndPort) throws CustonException;
}
